export {Bucket as GenBucket} from 'src/client'

import {Bucket as GenBucket} from 'src/client'

export interface OwnBucket extends Omit<GenBucket, 'labels' | 'type'> {
  labels?: string[]
  readableRetention: string
  // bucket type 'sample' is hardcoded in the frontend:
  // src/shared/contexts/buckets.tsx
  readonly type?: 'user' | 'system' | 'sample'
}

export type Bucket = OwnBucket

export type RetentionRule = GenBucket['retentionRules'][0]

export type LineProtocolTab = 'Upload File' | 'Enter Manually'

export enum WritePrecision {
  Ms = 'ms',
  S = 's',
  Us = 'us',
  Ns = 'ns',
}
